home *** CD-ROM | disk | FTP | other *** search
/ Sprite 1984 - 1993 / Sprite 1984 - 1993.iso / man / cmds / txinfo.man < prev    next >
Encoding:
Text File  |  1989-07-07  |  1.4 KB  |  44 lines

  1. ' $Header: /a/newcmds/txinfo/RCS/txinfo.man,v 1.4 89/07/06 21:58:10 shirriff Exp $ SPRITE (Berkeley)
  2. .so \*(]ltmac.sprite
  3. .HS TXINFO cmds
  4. .BS
  5. .SH NAME
  6. txinfo \- Return up-to-date termcap information
  7. .SH SYNOPSIS
  8. \fBtxinfo\fR
  9. .BE
  10. .SH INTRODUCTION
  11. .LP
  12. This command will output on its standard output two shell commands,
  13. which will set the TERM and TERMCAP enivornment variables to contain
  14. correct information for the \fBtx\fR window attached to /dev/tty.
  15. For this command to work properly, the controlling terminal
  16. for the process (/dev/tty) must be attached to a \fBtx\fR window;  \fBtxinfo\fR
  17. outputs \fBtx\fR commands to the window and reads back information supplied
  18. by \fBtx\fR.
  19. .LP
  20. This command is particularly useful in .login files on machines that
  21. do not have ``tx'' entries in their termcap files (and right now there
  22. are no machines with "tx" termcap entries), so that you can rlogin
  23. from your workstation and get the TERM and TERMCAP environment variables
  24. defined.  For example, you might include the following shell commands
  25. in your .login files:
  26. .DS
  27.  
  28. if ( $TERM == tx ) then
  29.     set noglob
  30.     eval `txinfo`
  31.     unset noglob
  32. endif
  33. .DE
  34. .LP
  35. The \fBnoglob\fR variable must be unset while processing the
  36. the TERMCAP entry because it contains special characters like \fB[\fR,
  37. which will confuse the shell unless \fBnoglob\fR is set.
  38.  
  39. .SH "SEE ALSO"
  40. tx
  41.  
  42. .SH KEYWORDS
  43. termcap, terminal emulator, typescript, window
  44.